<div class="userrightmenu">
	<span class="fr">您已发布二手车 <span class="orange01"><{$usercarcounts.0}></span> 辆，在售 <span class="orange01"><{$usercarcounts.2}></span> 辆，已售 <span class="orange01"><{$usercarcounts.1}></span> 辆。</span><a href="<{$weburl}>/index.php?m=user&a=addcar">发布二手车</a>
</div>
<div class="userrightsearch clearfix">
	<div class="fr">
		<form method="get" action="<{$weburl}>/index.php">
			<input type="text" name="keywords" class="keyword" size="30"><input type="submit" class="but01" value="搜 索"><input type="hidden" name="m" value="user"><input type="hidden" name="a" value="carlist">
		</form>
	</div>
</div>
<table cellspacing="0" cellpadding="0" width="100%"  class="listtable">
	<tr>
		<th width="100">图片</th>
		<th>车型信息</th>
		<th>报价</th>
		<th width="130">操作</th>
	</tr>
	<{foreach from=$carslist item=cars}>
	<tr bgcolor="#ffffff" onmouseover="style.backgroundColor='#f5f5f5'"  onmouseout="style.backgroundColor='#ffffff'">
		<td align="center">
			<div class="carimg">
			<{if $cars.issell==1}><div class="carstatus">已售出</div><{else}><{if $cars.isshow==0}><div class="carstatus">未审核</div><{elseif $cars.isshow==2}><div class="carstatus">未通过审核</div><{/if}><{/if}>
			<{if $cars.p_mainpic<>''}><img src="<{$cars.p_mainpic}>" width="80" height="60"/><{else}><div class="noimg">未上传图片</div><{/if}>
			</div>
		</td>
		<td align="left">
			<p><a href="<{$cars.p_url}>" target="_blank" class="f14 fb"><{if $cars.p_allname!=""}><{$cars.p_allname}><{else}><{$cars.p_name}><{/if}></a> <{if $cars.p_pics!=""}><span class="red">图</span><{/if}> <{if $cars.issell==1}><span class="red">已出售</span><{/if}></p>
			<p class="gray">排量：<{$cars.p_gas}> 升 / 上牌日期：<{$cars.p_year}>年<{$cars.p_month}>月 / 颜色：<{$cars.p_color}> / 行驶里程：<{$cars.p_kilometre}> 万公里</p>
			<p class="gray">刷新时间：<{$cars.listtime}></p>
		</td>
		<td align="center" class="orange01 f14"><{$cars.p_price}>万</td>
		<td align="center" class="acmenu">
			<p><a href="<{$weburl}>/index.php?m=user&a=editcar&id=<{$cars.p_id}>&page=<{$currpage}>">编辑</a> | <a href="<{$weburl}>/index.php?m=user&a=refresh&id=<{$cars.p_id}>&page=<{$currpage}>">刷新</a></p>
			<{if $cars.isshow==1}><p><a href="<{$weburl}>/index.php?m=user&a=sellcar&sell=<{if $cars.issell==1}>0<{else}>1<{/if}>&id=<{$cars.p_id}>&page=<{$currpage}>"><{if $cars.issell==1}>恢复为在售<{else}>设置为已出售<{/if}></a>
			</p><{/if}> 
		</td>
	</tr>
	<{/foreach}>
</table>
<div class="page_list">
	<{$button_basic}>
</div>